import request from '@/utils/request'

// 查询预存款信息列表
export function listAdvancedeposit(query) {
  return request({
    url: '/feeDeposit/advancedeposit/list',
    method: 'get',
    params: query
  })
}

// 查询预存款信息详细
export function getAdvancedeposit(id) {
  return request({
    url: '/feeDeposit/advancedeposit/' + id,
    method: 'get'
  })
}
// 根据shopId查询预存款信息详细
export function getshopId(id) {
  return request({
    url: '/feeDeposit/advancedeposit/shopId/' + id,
    method: 'get'
  })
}
// 根据shopId查询预存款余额
export function getshopIdBychaId(id) {
  return request({
    url: '/feeDeposit/advancedeposit/shopIdAndChargeItemid/' + id,
    method: 'get'
  })
}

// 新增预存款信息
export function addAdvancedeposit(data) {
  return request({
    url: '/feeDeposit/advancedeposit',
    method: 'post',
    data: data
  })
}

export function addamts(data) {
  return request({
    url: '/feeDeposit/advancedeposit/addamts',
    method: 'post',
    data: data
  })
}
// 修改预存款信息
export function updateAdvancedeposit(data) {
  return request({
    url: '/feeDeposit/advancedeposit',
    method: 'put',
    data: data
  })
}

// 删除预存款信息
export function delAdvancedeposit(id) {
  return request({
    url: '/feeDeposit/advancedeposit/' + id,
    method: 'delete'
  })
}
